.class public Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/webkit/WebView;

.field private b:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->b:Ljava/lang/String;

    return-void
.end method

.method private a()V
    .locals 4

    const/4 v2, 0x1

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "openurl"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->b:Ljava/lang/String;

    const v0, 0x7f0c0348

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    const v0, 0x7f0c0349

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->a:Landroid/webkit/WebView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->a:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setAllowFileAccess(Z)V

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setDomStorageEnabled(Z)V

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setUseWideViewPort(Z)V

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V

    const-string/jumbo v1, "utf-8"

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setDefaultTextEncodingName(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->a:Landroid/webkit/WebView;

    new-instance v1, Lcom/waiqin365/lightapp/cockpit/a;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/cockpit/a;-><init>(Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->a:Landroid/webkit/WebView;

    new-instance v1, Lcom/waiqin365/lightapp/cockpit/b;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/cockpit/b;-><init>(Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->a:Landroid/webkit/WebView;

    new-instance v1, Lcom/waiqin365/lightapp/cockpit/c;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/cockpit/c;-><init>(Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;)V

    const-string/jumbo v2, "cockpit"

    invoke-virtual {v0, v1, v2}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->b:Ljava/lang/String;

    const-string/jumbo v1, "?"

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "?time="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->b:Ljava/lang/String;

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->a:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->b:Ljava/lang/String;

    invoke-static {v1}, Lcom/waiqin365/base/login/d/g;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    return-void

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "&time="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->b:Ljava/lang/String;

    goto :goto_0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 0

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/app/Activity;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f03008f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/cockpit/CockpitFullDetailActivity;->a()V

    return-void
.end method
